local LabelColor = "230,50,92"
local LabelPositionLeft = "left"
local LabelPositionCenter = "center"
local LabelSizeLarge = 20
local LabelSizeSmall = 16

local UIID = 20

function RxShowUI()
  UINew("三国杀名将传 开号辅助", "立即运行", "立即退出", "rxsgsmjz.dat", 0, 1000)
  UILabel("支持：新手引导，做任务，挑战，武将升级强化，游历...", LabelSizeLarge, LabelPositionLeft,  LabelColor)
  UILabel("创建角色: 默认：男", UIID, LabelPositionCenter,  LabelColor)
  UIRadio("gameRoleSex", "男, 女", "0")
  UILabel("基础功能", LabelSizeLarge, LabelPositionCenter,  LabelColor)
  UICheck("basic1, basic2", "自动点击, 自动收集", "0@1")
  UILabel("点击速度设置", LabelSizeLarge, LabelPositionCenter,  LabelColor)
  UIRadio("step", "iPhone 6+, iPhone 5 或安卓旗舰, 低配千元安卓机, 选这个保证不卡, 自定义速度", "3")
  UILabel("自定义速度设置", LabelSizeLarge, LabelPositionCenter, LabelColor)
  UIEdit("speedset", "每秒点击次数", "30", 15, LabelPositionLeft, "255,0,0", "number")
  UILabel("是否显示 点击手势、准星", LabelSizeLarge, LabelPositionCenter,  LabelColor)
  UIRadio("wztouch", "显示, 不显示", "0")
  UILabel("使用须知", LabelSizeLarge, LabelPositionLeft, LabelColor)
  UILabel("★ 进入游戏采用横屏，不支持竖屏", LabelSizeSmall, LabelPositionLeft, LabelColor)
  UILabel("★ 新区创建角色，需要在真机上才能通过，这个是游戏方的设定", LabelSizeSmall, LabelPositionLeft, LabelColor)
  UILabel("★ 创建角色后登陆验证，需要手动点击", LabelSizeSmall, LabelPositionLeft, LabelColor)
  UILabel("★ 游戏等级 > 16级，需要关闭 自动点击", LabelSizeSmall, LabelPositionLeft, LabelColor)
  UILabel("★ 速度设置不包括：手势滑动，键盘消失", LabelSizeSmall, LabelPositionLeft, LabelColor)
  UIShow()

  if step == "iPhone 6+" then
    sysInit.tapms = 15
  elseif step == "iPhone 5 或安卓旗舰" then
    sysInit.tapms = 23
  elseif step == "低配千元安卓机" then
    sysInit.tapms = 40
  elseif step == "选这个保证不卡" then
    sysInit.tapms = 190
  elseif step == "自定义速度" then
    sysInit.tapms = hyStrNum(speedset)
    sysInit.tapms = 1000/sysInit.tapms-10
    if sysInit.tapms < 1 then
      sysInit.tapms = 30
    end
    mSleep(2000)
  else
    sysInit.tapms = 30
  end

  -- basic1, basic2 -- 引导 需要配置

  if wztouch == "显示" then
    sysInit.touchUI = sysInit.touchDefaultUI
    RxLog("显示准星")
  else
    sysInit.touchUI = ''
    RxLog("不显示准星")
  end

  -- 启动脚本
  if RxDeviceScale() then
    RxLog('------------------- 启动游戏 ----------')
    main()
  else
    RxLog('------------------- 脚本退出 ----------')
    lua_exit()
  end
end